//
//  YAYIAlertView.h
//  yayi
//
//  Created by hxp on 16/3/17.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import <UIKit/UIKit.h>


@class YAYIAlertView;
@protocol YAYIAlertViewDelegate <NSObject>
-(void)alertView:(YAYIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end
@interface YAYIAlertView : UIView
{
    NSString *_title;
    NSString *_message;
    UIButton *_cancell;
    UIButton *_sureBtn;
    CGRect   _frame;
    UILabel  *_msgLabel;
    UIControl *_control;
    UIView *_alertView;
    NSString *_cancelStr;
    NSString *_sureStr;
    
}
-(instancetype)initWithView:(UIView *)view title:(NSString *)title message:(NSString *)message canCell:(NSString *)button otherBtn:(NSString *)button;
@property (weak,nonatomic)id<YAYIAlertViewDelegate> delegate;
@end
